package my.graduation.enums;

/**
 * @Author: RavenLyn
 * @Date: 2024-11-28
 */

public enum HttpCodeEnums {

    DATA_EXIST(1001,"数据已经存在"),
    DATA_NOT_EXIST(1002,"数据不存在"),
    LOGIN_PASSWORD_ERROR(1003,"密码错误"),
    LOGIN_IS_BLANK(1004,"登录信息不能为空"),
    REGISTER_IS_BLANK(1005,"注册信息不能为空"),
    SYSTEM_ERROR(1006,"系统错误，请稍后重试"),
    INVALID_TOKEN_OR_EXPIRED(1007,"token非法/已过期"),
    INFO_IS_BLANK(1008,"信息为空"),
    USERNAME_EXIST(1009,"用户名已存在"),
    ILLEGAL_OPERATION(1010,"不合规操作"),
    UPLOAD_FAILED(1011,"上传失败"),
    SCHEDULE_CONFLICT(1012,"排班时间有冲突"),
    REFUND_FAILED(1013,"退款失败"),
    OLD_PASSWORD_WRONG(1014,"旧密码错误"),
    SMS_SEND_FAILED(1015,"短信发送失败");

    int code;
    String msg;

    HttpCodeEnums(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode(){
        return code;
    }

    public String getMessage(){
        return msg;
    }
}
